package com.wf;

import com.wf.filter.AccessFilter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;

@EnableZuulProxy
@EnableDiscoveryClient
@SpringCloudApplication
public class WfApigatewayApplication {
	/**
	 * 服务网关
	 * http://localhost:4444/consumer/userinfo/getUserList/AAA?accessToken=miyao
	 * @param args
     */
	public static void main(String[] args) {
		SpringApplication.run(WfApigatewayApplication.class, args);
	}
	@Bean
	public AccessFilter accessFilter() {
		return new AccessFilter();
	}
}
